package com.guigu.eduservice.service.impl;

import com.guigu.eduservice.entity.DetectionReport;
import com.guigu.eduservice.mapper.DetectionReportMapper;
import com.guigu.eduservice.service.DetectionReportService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * <p>
 * 检测报告表（存储设备检测的结果及结论） 服务实现类
 * </p>
 *
 * @author Xiaosong
 * @since 2025-10-13
 */
@Service
public class DetectionReportServiceImpl extends ServiceImpl<DetectionReportMapper, DetectionReport> implements DetectionReportService {
    @Autowired
    private DetectionReportMapper detectionReportMapper;

    @Override
    public DetectionReport selectDetectionReportById(Long equipmentId) {
        return detectionReportMapper.selectDetectionReportByEquipmentId(equipmentId);
    }
}
